package com.teapos.util;

import java.io.IOException;

import jodd.props.Props;

public class PropUtil {
	
	static Props prop = new Props();
	
	static {
		try {
			prop.load(PropUtil.class.getClassLoader().getResourceAsStream("config.properties"));
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
	public static String getValueByKey(String key) {
		return prop.getValue(key);
	}
	
	public static void main(String[] args) {
		System.out.println(PropUtil.getValueByKey("url.check"));
	}

}
